package com.learn.spring5.aopanno;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Component
@Aspect
@Order(1)
public class PersonProxy
{
	// 后置通知
	// @Before注解表示作为前置通知
	@Before(value = "execution(* com.learn.spring5.aopanno.User.add(..))")
	public void before()
	{
		System.out.println("Person Before......");
	}

}
